from datetime import datetime
from unittest.mock import Base
from pydantic import BaseModel, Field


class ClientListInSchema(BaseModel):
    page: int = Field(default=1, description='页码')
    page_size: int = Field(default=10, description='每页数量')


class ClientOutSchema(BaseModel):
    id: int
    create_time: datetime = Field(default=datetime.now())
    openid: str
    phone: str | None
    nickname: str | None
    status: int


class ClientChangeStatusSchema(BaseModel):
    client_id: int
    status: int
